package com.doudou.commons.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program:
 * @description
 * @author: 傻男人
 * @create: 2019-06-04 13:39
 **/
@Data
@ApiModel("基本的实体类")
public class  BaseEntity implements Serializable {
    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;
    /**
     * 创建时间
     */
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField(value = "update_date",fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;
    /**
     * 删除的状态标识
     */
    @TableField(value= "del_flag",fill = FieldFill.INSERT)
    private Integer delFlag;
}
